package com.dongdongqiang.domain.blog;

import com.dongdongqiang.common.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
import java.math.BigDecimal;


/**
* DdqCategory 实体类
* by ZZB 2017-09-15 22:20:05
*/
@Table(name = "ddq_category")
public class DdqCategory extends BaseEntity {
    @Column(name = "name")
    private String name;
    @Column(name = "user_id")
    private String userId;
    @Column(name = "icon")
    private String icon;
    @Column(name = "level")
    private Integer level;
    @Column(name = "parent_id")
    private String parentId;

    /*----------------------get set 方法----------------------*/
    public String getName() {return name;}
    public void setName(String name){this.name = name == null ? null : name.trim();}
    public String getUserId() {return userId;}
    public void setUserId(String userId){this.userId = userId == null ? null : userId.trim();}
    public String getIcon() {return icon;}
    public void setIcon(String icon){this.icon = icon == null ? null : icon.trim();}
    public Integer getLevel() {return level;}
    public void setLevel(Integer level){this.level = level;}
    public String getParentId() {return parentId;}
    public void setParentId(String parentId){this.parentId = parentId == null ? null : parentId.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "DdqCategory{" +
        "id='" + getId() + '\'' + ',' + 
        "name='" + getName() + '\'' + ',' + 
        "userId='" + getUserId() + '\'' + ',' + 
        "icon='" + getIcon() + '\'' + ',' + 
        "level='" + getLevel() + '\'' + ',' + 
        "parentId='" + getParentId() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
